package cn.edu.sgu.www.mhxysy.service.fabao.impl;

import cn.edu.sgu.www.mhxysy.entity.fabao.FabaoLiangyiAttributeValue;
import cn.edu.sgu.www.mhxysy.mapper.fabao.FabaoLiangyiAttributeValueMapper;
import cn.edu.sgu.www.mhxysy.service.fabao.FabaoLiangyiAttributeValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class FabaoLiangyiAttributeValueServiceImpl implements FabaoLiangyiAttributeValueService {

    private final FabaoLiangyiAttributeValueMapper fabaoLiangyiAttributeValueMapper;

    @Autowired
    public FabaoLiangyiAttributeValueServiceImpl(FabaoLiangyiAttributeValueMapper fabaoLiangyiAttributeValueMapper) {
        this.fabaoLiangyiAttributeValueMapper = fabaoLiangyiAttributeValueMapper;
    }

    @Override
    public List<FabaoLiangyiAttributeValue> selectAll() {
        return fabaoLiangyiAttributeValueMapper.selectList(null);
    }

    @Override
    public FabaoLiangyiAttributeValue selectById(Integer id) {
        return fabaoLiangyiAttributeValueMapper.selectById(id);
    }

}